package io.renren.modules.app.controller;

import com.zheok.testing.entity.ActivityEntity;
import io.renren.common.utils.PageUtils;
import io.renren.modules.app.service.ActivityService;
import io.renren.modules.app.service.SensitiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import utils.R;

import java.io.IOException;
import java.util.Arrays;
import java.util.Map;

/**
 * 敏感字管理
 *
 * @author ææ¢
 * @email 2863751700@qq.com
 * @date 2022-07-31 19:06:14
 */
@RestController
@RequestMapping("testing/sensitive")
public class SensitiveController {
    @Autowired
    private SensitiveService sensitiveService;


    /**
     * 保存
     */
    @GetMapping("/save")
   // // //@RequiresPermissions("testing:activity:save")
    public R save(@RequestParam("content") String content) throws IOException {
//		activityService.saveinfo(activity);
        sensitiveService.saveOrUpdate(content);
        return R.ok();
    }




}
